package com.cdu.practicaltraining.sys.service;

import com.cdu.practicaltraining.pojo.Dict;
import com.cdu.practicaltraining.pojo.DictDetail;

import java.util.List;

public interface DictService {
    int addDict(Dict dict) throws Exception;
    Dict findDict(String dname) throws Exception;
    int insertDict(Dict dict) throws Exception;
    List<Dict> dicts() throws Exception;
    Dict findById(int id) throws Exception;
    int updateDict(Dict dict) throws Exception;
    int deleteDict(int id) throws Exception;
    int insertDictDetail(DictDetail dictDetail) throws Exception;
    DictDetail findDictDetail(String dtag) throws Exception;
}